package com.example.nutritionmate.repository;

import com.example.nutritionmate.entity.Meal;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.Optional;

@Repository
public interface MealRepository extends JpaRepository<Meal, Integer> {
    Optional<Meal> findByDateAndMealType(LocalDate date, Integer mealType);
}
